// import axiosInstance,{setHost} from '../axiosConfig';
import { RespData } from './../../entity/response/RespData';
import { wxAppGet } from '../wxRequest';

const apihost = "http://127.0.0.1:8089";

export async function queryBannerData(): Promise<string[]> {
    // setHost(apihost);
    // const response = await axiosInstance.get<RespData>('/banner/getList');
    const response = await wxAppGet<any>('/banner/getlist',{});
    const respData = new RespData(response.data);
    const banners = respData.getResult() as string[];
    return banners;
  }